﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DataStuctureObj
/// </summary>
public class DataStuctureObj
{
    private string m_fieldID = string.Empty;
    private string m_ColumnType = string.Empty;
    private int m_length = -1;
    private bool m_iskeyfield = false;

    public string FieldID
    {
        get{return m_fieldID;}
        set{m_fieldID =value;}
    }

    public string ColumnType
    {
        get{return m_ColumnType;}
        set{m_ColumnType = value;}
    }

    public int Length
    {
         get{return m_length;}
         set{m_length = value;}
    }
     public bool IsKeyField
    {
         get{return m_iskeyfield;}
         set{m_iskeyfield = value;}
    }

	public DataStuctureObj( int fID,   string CType, int L,  bool isKey)
	{
		FieldID = "Field" + fID.ToString();
        ColumnType = CType;
        Length = L;
        IsKeyField = isKey;
	}
}